let path = require('path');
let router = require('koa-router')();
let Sequelize = require('sequelize');

let dao = require('../../dao/' + path.basename(__dirname));

let daoUser = require('../../dao/user');
let trimPost = require('../../utils/Interceptor/trimPost');
let md5 = require('../../utils/lib/md5');

// 用户注册

router.post('/', async function (ctx, next) {

    let get = ctx.request.query;
    let post = ctx.request.body;

    if (!post.name || !post.password || !post.email) {
        
        ctx.body = {
            code: 1,
            msg: '请检查输入！',
            data: null
        };

    } else {

    }

});

module.exports = router.routes();